Working With the StdPix Function
To allow applications to have access to compressed image data as it is displayed, a new graphics function has been added to thegrafProcs
field of the color graphics port structure (defined by theCGrafPort
data type). See Inside Macintosh: Imaging for more information about the color graphics port structure.The
StdPix
function extends the currentgrafProcs
field to support compressed data, mattes, and matrices. The new function supports pixel maps and allows you to intercept image data in compressed form before it is decompressed and displayed. For example, you can use theStdPix
function to collect compressed image data that is to be processed and printed. In addition, your application can call theStdPix
function directly.The replaced
grafProcs
field is referred to in the original QuickDraw documentation as thenewProc1
field. The standard handler is calledStdPix
, and you obtain its address by calling QuickDraw'sSetStdCProcs
routine. Alternatively, your application can call theStdPix
function directly, using the interface described here. Your application can intercept the low-levelgrafProcs
drawing routines just as it would any of the other routines, except that you must callSetStdCProcs
to gain access to the standardgrafProcs
handler.
See Inside Macintosh: Imaging for more information about the QuickDraw low-level drawing routines, the
- Note
- QuickDraw's
CopyDeepMask
function uses theStdPix
function
if QuickTime is present.![]()
SetStdCProcs
routine, theQDProcs
structure, and theCopyDeepMask
routine.To work with the control information associated with a compressed image, you can use the
SetCompressedPixMapInfo
andGetCompressedPixMapInfo
functions (described on page 3-133 and page 3-135, respectively).
Subtopics
- StdPix
- SetCompressedPixMapInfo
- GetCompressedPixMapInfo